include_directories(/usr/include/graphviz)
include_directories(/usr/include/boost)
include_directories(${PROJECT_ROOT}/thirdparty/dlib-17.41)
include_directories(${CMAKE_CURRENT_BINARY_DIR})



FIND_PACKAGE(Qt4 REQUIRED)


find_package(Boost COMPONENTS system filesystem serialization REQUIRED)


SET(graphexplorer_HEADERS mainwindow.h)
SET(graphexplorer_SOURCES main.cpp mainwindow.cpp SingleGraphClusterer.cpp ../../GraphHandler.cpp ../../Partition.cpp ../../GraphPredicates.cpp ../../GraphExploration.cpp ../../AlgorithmStats.cpp)
SET(graphexplorer_FORMS mainwindow.ui)


QT4_WRAP_CPP(graphexplorer_HEADERS_MOC ${graphexplorer_HEADERS})
QT4_WRAP_UI(graphexplorer_FORMS_HEADERS ${graphexplorer_FORMS})


INCLUDE(${QT_USE_FILE})
ADD_DEFINITIONS(${QT_DEFINITIONS})

ADD_EXECUTABLE(GraphExplorer ${graphexplorer_SOURCES} 
    ${graphexplorer_HEADERS_MOC}
    ${graphexplorer_FORMS_HEADERS})


#MESSAGE(${Boost_SERIALIZATION_LIBRARY})
TARGET_LINK_LIBRARIES(GraphExplorer ${QT_LIBRARIES} ${Boost_SERIALIZATION_LIBRARY})

install(TARGETS GraphExplorer DESTINATION ${OUTPUT})
